package cn.tsinghua.comsmacitccntsinghua.tsinterface;
import java.util.Map;
public interface IHttpHelper {

    void get(String url, IResponse response);
    /**
     * GET请求，返回字符串
     * @param url
     * @param map
     * @param response
     */
    void get(String url, Map<String, Object> map, IStringResponse response);

    /**
     * POST请求，返回字符串
     * @param url
     * @param obj
     * @param response
     */
    void post(String url, Object obj, IStringResponse response);

    /**
     *  GET请求，返回Normalresponse
     * @param url
     * @param map
     * @param response
     */
    void getnp(String url, Map<String, Object> map, INpResponse response);

    /**
     * POST请求，返回Normalresponse
     * @param url
     * @param obj
     * @param response
     */
    void postnp(String url, Object obj, INpResponse response);
}
